﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PIM_ATE
{
    public partial class FrmRetry : Form
    {
        public FrmRetry(bool enableClose)
        {
            InitializeComponent();
            btnClose.Enabled = enableClose;
        }

        public FrmRetry(bool enableClose, string tips)
        {
            InitializeComponent();
            btnClose.Enabled = enableClose;
            this.lbl_message.Text = tips;
        }

        private void btnCon_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Ignore;
        }

        private void btTry_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Retry;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
        }
    }
}
